package com.zwl.springcloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import java.io.Serializable;
//订单表
@TableName("orderGoodsList")
public class OrderGoodsList implements Serializable {
    @TableId("orderGood_id")
    private int orderGood_id;
    /**
     * 非主键属性  @TableField
     *  @TableField("username")  参数为该属性对应的数据库表中的字段名
     */
    @TableField("Create_userid")
    private int Create_userid;
    @TableField("handler_userid")
    private int handler_userid;
    @TableField("state_id")
    private int state_id;
    @TableField("createTime")
    private DateTimeLiteralExpression.DateTime createTime;
    @TableField("updateTime")
    private DateTimeLiteralExpression.DateTime updateTime;
    @TableField("product_description")
    private String product_description;
    @TableField("payment_amount")
    private String payment_amount;

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public OrderGoodsList() {
    }

    @SuppressWarnings("all")
    public int getOrderGood_id() {
        return this.orderGood_id;
    }

    /**
     * 非主键属性  @TableField
     *  @TableField("username")  参数为该属性对应的数据库表中的字段名
     */
    @SuppressWarnings("all")
    public int getCreate_userid() {
        return this.Create_userid;
    }

    @SuppressWarnings("all")
    public int getHandler_userid() {
        return this.handler_userid;
    }

    @SuppressWarnings("all")
    public int getState_id() {
        return this.state_id;
    }

    @SuppressWarnings("all")
    public DateTimeLiteralExpression.DateTime getCreateTime() {
        return this.createTime;
    }

    @SuppressWarnings("all")
    public DateTimeLiteralExpression.DateTime getUpdateTime() {
        return this.updateTime;
    }

    @SuppressWarnings("all")
    public String getProduct_description() {
        return this.product_description;
    }

    @SuppressWarnings("all")
    public String getPayment_amount() {
        return this.payment_amount;
    }

    @SuppressWarnings("all")
    public void setOrderGood_id(final int orderGood_id) {
        this.orderGood_id = orderGood_id;
    }

    /**
     * 非主键属性  @TableField
     *  @TableField("username")  参数为该属性对应的数据库表中的字段名
     */
    @SuppressWarnings("all")
    public void setCreate_userid(final int Create_userid) {
        this.Create_userid = Create_userid;
    }

    @SuppressWarnings("all")
    public void setHandler_userid(final int handler_userid) {
        this.handler_userid = handler_userid;
    }

    @SuppressWarnings("all")
    public void setState_id(final int state_id) {
        this.state_id = state_id;
    }

    @SuppressWarnings("all")
    public void setCreateTime(final DateTimeLiteralExpression.DateTime createTime) {
        this.createTime = createTime;
    }

    @SuppressWarnings("all")
    public void setUpdateTime(final DateTimeLiteralExpression.DateTime updateTime) {
        this.updateTime = updateTime;
    }

    @SuppressWarnings("all")
    public void setProduct_description(final String product_description) {
        this.product_description = product_description;
    }

    @SuppressWarnings("all")
    public void setPayment_amount(final String payment_amount) {
        this.payment_amount = payment_amount;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof OrderGoodsList)) return false;
        final OrderGoodsList other = (OrderGoodsList) o;
        if (!other.canEqual((Object) this)) return false;
        if (this.getOrderGood_id() != other.getOrderGood_id()) return false;
        if (this.getCreate_userid() != other.getCreate_userid()) return false;
        if (this.getHandler_userid() != other.getHandler_userid()) return false;
        if (this.getState_id() != other.getState_id()) return false;
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        if (this$createTime == null ? other$createTime != null : !this$createTime.equals(other$createTime)) return false;
        final Object this$updateTime = this.getUpdateTime();
        final Object other$updateTime = other.getUpdateTime();
        if (this$updateTime == null ? other$updateTime != null : !this$updateTime.equals(other$updateTime)) return false;
        final Object this$product_description = this.getProduct_description();
        final Object other$product_description = other.getProduct_description();
        if (this$product_description == null ? other$product_description != null : !this$product_description.equals(other$product_description)) return false;
        final Object this$payment_amount = this.getPayment_amount();
        final Object other$payment_amount = other.getPayment_amount();
        if (this$payment_amount == null ? other$payment_amount != null : !this$payment_amount.equals(other$payment_amount)) return false;
        return true;
    }

    @SuppressWarnings("all")
    protected boolean canEqual(final Object other) {
        return other instanceof OrderGoodsList;
    }

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + this.getOrderGood_id();
        result = result * PRIME + this.getCreate_userid();
        result = result * PRIME + this.getHandler_userid();
        result = result * PRIME + this.getState_id();
        final Object $createTime = this.getCreateTime();
        result = result * PRIME + ($createTime == null ? 43 : $createTime.hashCode());
        final Object $updateTime = this.getUpdateTime();
        result = result * PRIME + ($updateTime == null ? 43 : $updateTime.hashCode());
        final Object $product_description = this.getProduct_description();
        result = result * PRIME + ($product_description == null ? 43 : $product_description.hashCode());
        final Object $payment_amount = this.getPayment_amount();
        result = result * PRIME + ($payment_amount == null ? 43 : $payment_amount.hashCode());
        return result;
    }

    @Override
    @SuppressWarnings("all")
    public String toString() {
        return "OrderGoodsList(orderGood_id=" + this.getOrderGood_id() + ", Create_userid=" + this.getCreate_userid() + ", handler_userid=" + this.getHandler_userid() + ", state_id=" + this.getState_id() + ", createTime=" + this.getCreateTime() + ", updateTime=" + this.getUpdateTime() + ", product_description=" + this.getProduct_description() + ", payment_amount=" + this.getPayment_amount() + ")";
    }
    //</editor-fold>
}
